Repository navigation
use file system access api - #363
Conversation
There was a problem hiding this comment.
This PR works way better than I expected it to. I also only found one or two things I would consider a bug, the rest are only minor inconsistencies and code style issues.
- This PR drops support for mod name coloring:
- Trying to add an entity via left clicking the map opens the browsers context menu.
- Closing the browser window does not ask the user if they wish to save their changes.
- NIT: Most of the
changeDetection: ChangeDetectionStrategy.Eagercan be removed
| <mat-tree #tree [dataSource]="nodes" [childrenAccessor]="childrenAccessor" class="mapTree"> | ||
| <mat-tree-node *matTreeNodeDef="let node; when: isSection" class="mapTree-section" isExpandable> | ||
| <button class="section-header" matTreeNodeToggle> | ||
| <span class="section-name">{{ node.names[0] }}</span> |
There was a problem hiding this comment.
NIT: I would prefer to have an indication that this element is interactable, such as the expand_more and chevron_right icons.
Added it back
I can't reproduce it
There is a warning that unsaved changes will be lost
I'd like to do that together with moving to zoneless. There are still lots of components that need it. |
Sorry, I meant right clicking. Steps to reproduce:
It does not show for me. Steps to reproduce:
|
|
What browser are you using? I don't have these issues with chrome on ubuntu |
|
Chrome 157.0.8103.79 on Windows 11 |
|
I can't reproduce any of that. I also checked the code and made some small adjustments, don't know if any of that helps.
|
| private showAddEntityMenu() { | ||
|
|
||
| Globals.globalEventsService.showAddEntityMenu.next(Helper.getPointerPos(this.scene.input.activePointer)); | ||
| } |
There was a problem hiding this comment.
I believe what is happening with the context menu is that the entity menu shows up so fast that the right click is executed on the entity menu and thus causes a context menu (as it is no longer the game canvas). Adding a setTimeout here worked for me:
private showAddEntityMenu() {
setTimeout(() => {
Globals.globalEventsService.showAddEntityMenu.next(Helper.getPointerPos(this.scene.input.activePointer));
});
}|
It turns out the usaved changes dialoge is an issue on my end. It seems to not happen on *.github.io domains. It works fine in a sandbox. |
|
could you try disabling the context menu for the add entity menu? |
I messed around a bit and this also works. In Change Then add this to the @Component({
// ...
host: {
'(contextmenu)': '$event.preventDefault()'
}
// ...
}); |
…g the add entity menu
748601b to
d0f6b70
Compare


Editor now uses file system access api to save/load files.